package org.example.util;


public class HexFormatMain {
    public static void main(String[] args) {
        String relativePath = "org/example/entity/ASMDemoEntity.class";
        String filePath = FileUtil.getFilePath(relativePath);
        System.out.println("file path: " + filePath);
        byte[] bytes = FileUtil.readBytes(filePath);
        String hex = HexUtil.hexFormat(bytes, HexFormat.FORMAT_HEX_SPACE_32);
        System.out.println("class文件的16进制： ");
        System.out.println(hex);

    }
}
